import request from '@/utils/request'

// 查询投资流程列表
export function listGpSecurityProcess(query) {
  return request({
    url: '/process/gpSecurityProcess/list',
    method: 'get',
    params: query
  })
}

// 查询投资流程详细
export function getGpSecurityProcess(id) {
  return request({
    url: '/process/gpSecurityProcess/' + id,
    method: 'get'
  })
}

// 根据基金管理人ID查询投资流程详细
export function getProcessByGpSecurityId(gpSecurityId) {
  return request({
    url: '/process/gpSecurityProcess/getByGpSecurityId/' + gpSecurityId,
    method: 'get'
  })
}

// 保存投资流程
export function saveGpSecurityProcess(data) {
  return request({
    url: '/process/gpSecurityProcess/save',
    method: 'post',
    data: data
  })
}

// 删除投资流程
export function delGpSecurityProcess(id) {
  return request({
    url: '/process/gpSecurityProcess/' + id,
    method: 'delete'
  })
}

// 导出投资流程
export function exportGpSecurityProcess(query) {
  return request({
    url: '/process/gpSecurityProcess/export',
    method: 'get',
    params: query
  })
}
